home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_qt3.idb / usr / freeware / Qt / examples / demo / i18n / i18n.h.z / i18n.h
C/C++ Source or Header  |  2002-04-08  |  767b  |  45 lines

  1. #ifndef I18N_H
  2. #define I18N_H
  3.  
  4. #include <qmainwindow.h>
  5.  
  6. class QWorkspace;
  7. class QAction;
  8. class QPopupMenu;
  9. class Wrapper;
  10.  
  11.  
  12. class I18nDemo : public QMainWindow
  13. {
  14.     Q_OBJECT
  15.  
  16. public:
  17.     I18nDemo(QWidget *, const char * = 0);
  18.     ~I18nDemo();
  19.  
  20.     void initActions();
  21.     void initMenuBar();
  22.  
  23.     void showEvent(QShowEvent *);
  24.     void hideEvent(QHideEvent *);
  25.  
  26.     QWorkspace *workspace;
  27.     QAction *actionClose, *actionCloseAll, *actionTile, *actionCascade;
  28.     QPopupMenu *windowMenu, *newMenu;
  29.     Wrapper *lastwrapper;
  30.  
  31.  
  32. public slots:
  33.     void newSlot(int);
  34.     void windowSlot(int);
  35.     void windowActivated(QWidget *);
  36.     void closeSlot();
  37.     void closeAllSlot();
  38.     void tileSlot();
  39.     void cascadeSlot();
  40.     void wrapperDead();
  41. };
  42.  
  43.  
  44. #endif // I18N_H
  45.